// reducer

import { SET_ARTICLE } from '@/store/actionType'
const initState = {
  page: 1,
  per_page: 10,
  results: [],
  total_count: 0
}
function article (state = initState, action) {
  console.log(action)
  if (action.type === SET_ARTICLE) {
    return action.payload
  }
  return state
}

export default article
